$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .dialog {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 100;
    background: rgba(0, 0, 0, 0.60);
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;

    .content {
      position: relative;

      .s {
        img {
          width: 900/$f+vw;
          object-fit: contain;
        }
      }

      .close {
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-100%);
        cursor: pointer;

        img {
          width: 2vw;
          min-width: 20px;
        }
      }

      .mc {
        position: absolute;
        left: 15%;
        top: 12%;
        width: 63%;

        .t {
          color: #FFF;
          font-size: $fontSize_48;
          font-style: italic;
          text-align: center;
        }

        .des {
          margin: 1vw 0;
          line-height: 1.5;

          p {
            color: #FFF;
            font-size: $fontSize_24;
            font-style: italic;
            text-indent: $fontSize_24;
          }
        }

        .icons {
          display: flex;

          a {
            margin-right: 10px;

            svg {
              width: 24/$f+vw;
              min-width: 16px;
            }
          }
        }
      }
    }
  }

  .bg_shape {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 50vh;
    pointer-events: none;

    img {
      width: 100%;
      object-fit: contain;
    }
  }

  .section1 {
    width: 1520/$f+vw;
    height: 834/$f+vw;
    overflow: hidden;
    margin: 149/$f+vw auto 0;
    border-radius: 40/$f+vw;
    position: relative;
    z-index: 5;

    .bg {
      width: 100%;
    }
  }

  .section2 {
    background: #151515;
    padding: 246/$f+vw 0;
    position: relative;
    margin-top: -160/$f+vw;

    .ov {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      pointer-events: none;
      overflow: hidden;

      .ct1 {
        width: 1979.999/$f+vw;
        position: absolute;
        top: 43.4%;
        left: 0;
      }

      .ct2 {
        width: 1979/$f+vw;
        position: absolute;
        top: 46.4%;
        left: 0;
      }
    }

    .clip {
      position: absolute;
      top: 370/$f+vw;
      left: 0;
      stroke-width: 120/$f+vw;
      width: 660/$f+vw;
      clip-path: inset(0 0 100% 0);

      path {
        stroke: #FF8080;
        stroke-opacity: 1;
      }

      &.animated {
        transition: 2s linear;
        clip-path: inset(0 0 0 0);
        transition-delay: .5s;
      }
    }

    .right_top {
      width: 365/$f+vw;
      height: 126/$f+vw;
      position: absolute;
      top: -126/$f+vw;
      right: 0;
    }

    .wrap {
      width: 1474/$f+vw;
      margin: auto;

      .title {
        display: flex;
        align-items: center;
        margin: 0 0 130/$f+vw 39/$f+vw;

        .text {
          margin: 0 62/$f+vw 0 0;
          color: #151515;
          text-align: center;
          -webkit-text-stroke-width: 0.5px;
          -webkit-text-stroke-color: rgba(255, 255, 255, .5);
          text-transform: uppercase;
          font-size: $fontSize_48;
        }

        .tu {
          width: 103/$f+vw;
        }
      }

      .content {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 45/$f+vw;

        .item {
          width: 100%;
          background: #2B2B2B;
          border-radius: 12/$f+vw;
          overflow: hidden;
          position: relative;
          cursor: pointer;
          display: block;

          &:nth-child(2n) {
            top: 80/$f+vw;
          }

          .img {
            width: 100%;
            height: 337/$f+vw;

            img {
              width: 100%;
              height: 100%;
            }
          }

          .text {
            box-sizing: border-box;
            padding: 11/$f+vw 27/$f+vw;

            h1 {
              margin: 0;
              font-size: 28/$f+vw;
              color: #fff;
              font-weight: bold;
              margin: 0 0 12/$f+vw;
              text-transform: uppercase;
            }

            .display {
              display: flex;
              align-items: center;

              img {
                width: 24/$f+vw;
                height: 24/$f+vw;

                &:not(:last-child) {
                  margin: 0 5/$f+vw 0 0;
                }
              }
            }
          }
        }
      }

      .more {
        width: 262/$f+vw;
        height: 83/$f+vw;
        border-radius: 50/$f+vw;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24/$f+vw;
        color: #fff;
        margin: 224/$f+vw auto 0;
        border: 1px solid #fff;
        transition: all 600ms;

        &:hover {
          background-color: #FF8080;
        }
      }
    }
  }

  .section3 {
    padding: 211/$f+vw 0 90/$f+vw 0;
    position: relative;
    margin-top: -12vw;
    z-index: 2;

    .svg_bg {
      position: absolute;
      width: 100%;
      top: 0;
      left: 0;
      z-index: -1;
    }

    .circle {
      position: absolute;
      right: 0;
      top: 609/$f+vw;
      width: 127/$f+vw;
    }

    .wrap {
      width: 1677/$f+vw;
      margin: auto;

      .title {
        display: flex;
        box-sizing: border-box;
        padding: 0 52/$f+vw 0 138/$f+vw;
        align-items: center;
        justify-content: space-between;

        .txt {
           p{
            color: #151515;
            font-size: $fontSize_54;
            text-transform: uppercase;
           }
        }

        .more {
          border-radius: 48/$f+vw;
          border: 1px solid #000;
          background: #000;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 24/$f+vw;
          color: #fff;
          width: 262/$f+vw;
          height: 83/$f+vw;
          text-transform: uppercase;
          transition: all 600ms;

          &:hover {
            background-color: #FF8080;
            border-color: #FF8080;
          }
        }
      }

      .content {
        position: relative;
        overflow: hidden;
        z-index: 1;
        margin: 82/$f+vw 0 0 0;
        padding: 74/$f+vw 189/$f+vw 235/$f+vw 138/$f+vw;

        .con_bg {
          position: absolute;
          width: 100%;
          top: 0;
          left: 0;
          object-fit: contain;
          z-index: -1;
        }

        .top {
          display: flex;
          align-items: center;

          .jt {
            width: 64/$f+vw;
            height: 64/$f+vw;
            margin: -1vw 34/$f+vw 0 0;
            cursor: pointer;
          }

          .cut {
            // display: flex;
            display: block;
            white-space: nowrap;
            overflow-x: scroll;
            padding-bottom: 1vw;
            &::-webkit-scrollbar{
              background-color: rgba(255, 255, 255, .5);
              height: 5px;
            }
            &::-webkit-scrollbar-thumb{
              background-color: rgba(255, 255, 255, 1);
              height: 5px;
              cursor: pointer;
            }
            .list {
              color: rgba(60, 78, 180, 0.61);
              font-family: Cairo;
              font-size: 28/$f+vw;
              font-weight: 700;
              transition: .6s;
              cursor: pointer;
              display: inline-block;
              margin-right: 3vw;
              &.on {
                color: #fff;
              }
            }
          }
        }

        .bottom {
          width: 1304/$f+vw;
          margin: 47/$f+vw auto 0;
          position: relative;
          left: 30/$f+vw;

          .matter {
            //height: 470/$f+vw;
            opacity: 0;
            pointer-events: none;
            transform: translateY(10px);
            position: relative;
            width: 100%;

            .section3_swiper {
              height: 100%;

              .swiper-slide {
                border: 6/$f+vw solid #111;
                border-radius: 32/$f+vw;
                overflow: hidden;

                img {
                  width: 100%;
                }

                .st{
                  padding: 1vw 0;
                  text-align: center;
                  color: #FFF;
                  font-size: 1.26vw;
                  background: #2B2B2B;
                }
              }
            }

            &:not(:first-child) {
              position: absolute;
              top: 0;
              left: 0;
            }

            &.on {
              transition: .6s;
              opacity: 1;
              pointer-events: auto;
              transform: translateY(0);

              .button {
                div {
                  pointer-events: auto;
                }
              }
            }

            .button {
              width: 1620/$f+vw;
              top: 50%;
              left: 50%;
              transform: translate(-50%, -50%);
              pointer-events: none;
              display: flex;
              position: absolute;
              justify-content: space-between;

              div {
                width: 120/$f+vw;
                height: 120/$f+vw;
                cursor: pointer;
              }
            }
          }
        }

        * {
          box-sizing: border-box;
        }
      }
    }
  }

  .section4 {
    padding: 5vw 0 8vw 0;
    background: #151515;
    position: relative;

    .scroll-container {
      width: 100%;
      overflow: hidden;
      position: relative;

      .animate_box {
        display: flex;
        width: max-content;
        animation: ani-loop 40s linear infinite;


        .flex-xb {
          display: flex;
          flex-wrap: wrap;

          .icon {
            width: 355/$f+vw;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 2vw;

            img {
              max-height: 80%;
              max-width: 80%;
              display: block;
              object-fit: contain;
            }
          }
        }

        @keyframes ani-loop {
          0% {
            transform: translateX(0);
          }

          100% {
            transform: translateX(-50%);
          }
        }
      }

      .animate_box2 {
        animation-direction: reverse;
        margin: 2vw 0;
      }
    }
  }

  .section5 {
    display: flex;
    position: relative;
    overflow: hidden;
    z-index: 1;

    .clip1 {
      width: 473/$f+vw;
      position: absolute;
      top: -80/$f+vw;
      left: -23/$f+vw;
      z-index: -1;
      clip-path: inset(0 0 100% 0);

      &.animated {
        clip-path: inset(0 0 0 0);
        transition: .6s linear;
      }
    }

    .clip2 {
      position: absolute;
      width: 907/$f+vw;
      top: -80/$f+vw;
      left: 0;
      z-index: -1;
      clip-path: inset(0 0 100% 0);

      &.animated {
        clip-path: inset(0 0 0 0);
        transition: .6s linear;
        transition-delay: .5s;
      }
    }

    * {
      box-sizing: border-box;
    }

    .l,
    .r {
      width: 50%;
      height: 1013/$f+vw;
    }

    .l {
      position: relative;
      padding: 230/$f+vw 0 0 232/$f+vw;

      .jump {
        .baise {
          width: 722/$f+vw;
          height: 616/$f+vw;
          border-radius: 37/$f+vw;
          background-color: #fff;
          padding: 60/$f+vw 56/$f+vw 56/$f+vw 57/$f+vw;

          .flex {
            display: flex;
            margin: 0 0 45/$f+vw;

            .list {
              &:not(:last-child) {
                margin: 0 99/$f+vw 0 0;
              }

              p {
                font-size: 20/$f+vw;
                color: #333;
                margin: 0 0 13/$f+vw;
              }

              span {
                color: #000;
                font-size: 64/$f+vw;
                font-style: normal;
                font-weight: 700;
                line-height: 97.5/$f+vw;
                /* 152.344% */
                text-transform: uppercase;
              }
            }
          }

          .text {
            color: #151515;
            font-family: Cairo;
            font-size: 24/$f+vw;
            line-height: 53/$f+vw;
            /* 220.833% */
            text-transform: uppercase;
          }
        }

        .more {
          width: 262/$f+vw;
          height: 84/$f+vw;
          border-radius: 48/$f+vw;
          border: 1px solid #000;
          background: #000;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 24/$f+vw;
          color: #fff;
          margin: 0 0 0 333/$f+vw;
          text-transform: uppercase;
          transition: all 600ms;

          &:hover {
            background-color: #FF8080;
            border-color: #FF8080;
          }
        }
      }
    }

    .r {
      img {
        width: 100%;
        height: 100%;
      }
    }
  }

  @media screen and (max-width: 1024px) {
    .section1 {
      width: 90%;
      padding: 50px 0 0 0;
      height: auto;
      img {
        border-radius: 20px;
      }
    }

    .section2 {
      margin-top: -20px;

      .wrap {
        width: 90%;

        .title {
          margin: 0 0 25px;

          .text {
            font-size: 24px;
            margin-right: 40px;
          }

          .tu {
            width: 85px;
          }
        }

        .content {
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          gap: 15px;

          .item {
            border-radius: 12px;
            .img {
              height: auto;
            }

            &:nth-child(2n) {
              top: 30px;
            }

            .text {
              padding: 8px 15px;

              h1 {
                font-size: 14px;
                margin: 0 0 1.2vw;
              }

              .display {
                img {
                  width: 1.25vw;
                  height: auto;
                  min-width: 16px;

                  &:not(:last-child) {
                    margin: 0 10px 0 0;
                  }
                }
              }
            }
          }
        }

        .more {

          width: 140px;
          height: 40px;
          font-size: 14px;
          margin: 80px auto 0;
          border-radius: 30px;
        }
      }

    }

    .section3 {
      margin-top: -20px;

      .wrap {
        width: 90%;

        .title {
          padding: 0;

          .txt {
             p{
              font-size: 18px;
             }
          }

          .more {
            width: 140px;
            height: 40px;
            font-size: 14px;
            border-radius: 30px;
          }
        }

        .content {
          margin: 30px 0 0 0;
          padding: 5%;
          background-image: linear-gradient(to bottom, #6C81EF 50%, #F7D3FD 100%);
          border-radius: 15px;

          .con_bg {
            display: none;
          }

          .top {
            flex-direction: column;
            align-items: unset;

            .jt {
              width: 40px;
              height: auto;

            }

            .cut {
              flex-direction: column;
              margin: 15px 0 0 0;

              .list {
                font-size: 14px;
                color: rgba(255, 255, 255, .8);

                &:not(:last-child) {
                  margin: 0 15px 10px 0;
                }

                &.on {
                  color: #fff;
                }
              }
            }
          }

          .bottom {
            width: 100%;
            margin: 15px 0 0;
            left: 0;

            .matter {
              height: auto;
              .section3_swiper{
                .swiper-slide{
                  border: 5px solid #111;
                  border-radius: 15px;
                  .st{
                    padding: 15px 0;
                    font-size: 16px;
                  }
                }
              }
            }
          }
        }
      }
    }

    .section4 {
      .scroll-container {
        .animate_box {
          .flex-xb {
            .icon {
              width: 200px;
            }
          }
        }
      }
    }

    .section5 {
      flex-direction: column;

      .l {
        width: 100%;
        padding: 10% 5%;
        height: auto;

        .jump {
          .baise {
            width: 100%;
            height: auto;

            .flex {
              .list {
                p {
                  font-size: 14px;
                  margin: 0 0 20px;
                }

                span {
                  font-size: 30px;
                  line-height: 1;
                }
              }
            }

            .text {
              font-size: 13px;
              line-height: 1.8;
            }
          }

          .more {
            width: 140px;
            height: 40px;
            font-size: 14px;
            border-radius: 30px;
            margin: 20px 0 0 0;
          }
        }
      }

      .r {
        height: auto;
        width: 90%;
        margin: 0 auto 20px;
      }
    }

    .dialog {
      .content {
        .s {
          img {
            width: 110%;
          }
        }

        .mc {
          width: 73%;

          .t {
            font-size: 24px;
          }

          .des {
            height: 200px;
            overflow-y: scroll;
            margin: 10px 0;

            p {
              font-size: 12px;
            }
          }
        }

        .close {
          bottom: -20px;

          img {
            width: 30px;
          }
        }
      }
    }
  }
}